package com.gy.boot.common.util;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 提供对JDK常用类的简单操作工具
 * @author geYang
 * */
public class CommonUtil {

	/** List<String> 转 String */
	public static String listToString(List<String> list, String symbol) {
	    if (BlankUtil.isBlank(list)) {
	        return null;
	    }
		symbol = BlankUtil.isBlank(symbol) ? ";" : symbol;
	    StringBuilder listStr = new StringBuilder();
	    for (String str : list) {
	        listStr.append(symbol);
	        listStr.append(str);
	    }
        return listStr.substring(1);
	}

}
